<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
    <style type="text/css">
        #div {
            background-color: aliceblue
        }

        #two {
            margin: 40px
        }

    </style>
    <script>
        window.onload=function () {
            setInterval(function () {
                getDate();
            },1000);
        }
        function getDate() {
            var gettime = document.getElementById("div0");
            var date=new Date();
            var year = date.getFullYear();
            var month = date.getMonth();
            var data = date.getDate();
            var hours = date.getHours();
            var minute = date.getMinutes();
            var second = date.getSeconds();
            var time = year+'-'+f(month+1)+'-'+f(data)+' '+f(hours)+':'+f(minute)+':'+f(second);
            gettime.innerHTML = time;
        }
        function f(str) {
            var num;
            str>=10?num=str:num='0'+str;
            return num;
        }
    </script>
</head>
<body>
<div id = "div0" style="margin-left: 90%"></div>
<div align="center" id="div">
    <h1>登陆界面</h1>
    <form action="./index.html" id="one">
        <table border="0" cellspacing="0" align="center" id="two">
            <tr>
                <th align="right">账号：</th>
                <td><input type="text" id="id" name="id"></td>
            </tr>
            <tr>
                <th align="right">密码：</th>
                <td><input type="password" id="pwd" name="card"></td>
            </tr>
        </table>
        <input type="submit" id="but1" value="登陆"><br>
        点击进行<a href="./register.html">注册账号</a>
    </form>
</div>
</body>
</html>